﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MicroAmoy.Util
{
    /// <summary>
    /// 执行结果
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class BaseResult<T>
    {
        /// <summary>
        /// status 0成功 1服务器出错 2请求参数非法
        /// </summary>
        public int status { get; set; }
        /// <summary>
        /// 错误信息
        /// </summary>
        public string message { get; set; }
        /// <summary>
        /// 返回结果
        /// </summary>
        public T result { get; set; }
    }
    /// <summary>
    /// 带分页的执行结果
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class BaseResultPage<T> : BaseResult<T>
    {
        public int totalcount { get; set; }
    }
}

